home *** CD-ROM | disk | FTP | other *** search
/ Developer Source 17 / Developer Source Volume 17 (I-MODE Publications, Inc.)(2000).iso / msysj / nov96 / box0f104.gif < prev    next >
Graphics Interchange Format  |  1998-02-10  |  145KB  |  735x584  |  4-bit (16 colors)
Labels: text | screenshot | number | document | font
OCR: Figure 4 IDL and Code Guide for Typical COM Situations Scenano IDI Client Method String Input HRESULT flin, string) const OLECHAR .pwszk p->HOLESERT Helb ); HRESULT IEGASE OLECHAR WERL #aliase string .... String Output: HRESULT Itout, string! OLECHAR ** CA OLECHAR War[1024]; HRESULT NOLECHAR *wsz, long Max !! find long cchMax); T-allwsr, 10241; weachyt wsz, OLESTRI Bob !) ,; return S_OK; String Output: HRESULT float, string] OLECHAR .WEZE OLECHAR Spusz = 0; OA HRESULT ROLECHAR jpw:2}} if(SUCCEEDEDIp->[&pWBE)) int ch - [westen OLESTRI Boh D) 4 Dy ;. fuse string b .- SiROLECHARK ppesz = [OLECHAR CoTaskMemAlloo(cb); if (ppwex == 0) return E_OUTOFMEMORY; Wescpy:"ppwsz, OLESTRI"Beb"); return'S 019 Non-string Array: HRESULT Rlin, size is(cMax) short ipe, Short gel] [1,2,31; HRESULT [short , res, long (Max) ! Inpil in] long cMboo; for (long'n = 0; n < cMax: n++) total += resfal: return S_OK; Non-string Array ERESULT Filout, size_iateMax), short ree[ 10] HRESULT Iishort frgs, long Max, Output: CA length ist 'peachial!] short mps; long cActont = 0; long *poActualy (inl long <Mfax, p->fres, 10, &rActualy polctonl = mintcMax, Ck [out] long "prActual); for (int n = 0; n < "pcActual: n++). return'S OK; Non-string Array HRESULT ((lout, size ist, peMax)] short " pporgs. short Vores = 0; HRESULT Ashort "porgs, long "peMaxH Output: 0A [out] long *pcMax); long cMax = 0; neMax = hr p->Il &pras, &cMax' int ch = "peMax § aiseoll "fppngs); if (SUCCEEDEDCOM. ppres = [short"> CoTaskMemAlloofcb); # uso array if ("ppris + 0) return E OUTOFMEMORY; CoTask MemFreefprysz Yeterd S_OK; - CA: Caller Allocated Buffer OA: Object Allocated Buffer (preferred)